package com.itheima.health.controller;


import com.itheima.health.common.R;
import com.itheima.health.pojo.vo.SetmealReportVO;
import com.itheima.health.service.ITSetmealCheckgroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author cpanda
 * @since 2024-01-26
 */
@RestController
public class TSetmealCheckgroupController {

    @Autowired
    ITSetmealCheckgroupService setmealCheckgroupService;

    /**
     * 套餐占比
     * @return
     */
    @GetMapping("/report/getSetmealReport")
    public R getSetmealReport(){
        SetmealReportVO vo= setmealCheckgroupService.getSetmealReport();
        return R.success(vo);
    }

}
